package com.myapi.controller.constructor;

import com.myapi.model.Content;

import java.util.ArrayList;

/**
 * Created by dawn on 2017/11/2.
 */
public class ApiConstructor {

    public ArrayList<Content> getCont(){

        Content content1= new Content();
        content1.setCenterId(1020);
        content1.setCenterName("爱琴海中心");
        content1.setUsedEvaluationNum(0);
        content1.setSurplusEvaluationNum(65);
        content1.setIsStart(false);

        Content content2 =  new Content();
        content2.setCenterId(1001);
        content2.setCenterName("加盟中心");
        content2.setUsedEvaluationNum(0);
        content2.setSurplusEvaluationNum(0);
        content2.setIsStart(true);

        Content content3= new Content();
        content3.setCenterId(1000);
        content3.setCenterName("开发测试中心");
        content3.setUsedEvaluationNum(2);
        content3.setSurplusEvaluationNum(98);
        content3.setIsStart(true);

        Content content4= new Content();
        content4.setCenterId(75);
        content4.setCenterName("厦门测试中心");
        content4.setUsedEvaluationNum(82);
        content4.setSurplusEvaluationNum(178);
        content4.setIsStart(false);

        Content content5= new Content();
        content5.setCenterId(74);
        content5.setCenterName("测试中心");
        content5.setUsedEvaluationNum(888);
        content5.setSurplusEvaluationNum(65);
        content5.setIsStart(true);

        ArrayList<Content> childList = new ArrayList<Content> ();
        childList.add(content1);
        childList.add(content2);
        childList.add(content2);
        childList.add(content4);
        childList.add(content5);

        return childList;
    }
}
